package com.learn.hibernatevalidator.chapter02.validation;

import jakarta.validation.constraints.AssertTrue;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author: liyf
 * @create: 2024-12-22 15:31
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Car {

    @NotNull
    private String manufacturer;

    @AssertTrue
    private boolean isRegistered;
}
